/* 通用类 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.c-b {
    clear: both;
}

.f-l {
    float: left;
}

.f-r {
    float: right;
}

/* 开关 */
.switch {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.switch .switch-checkbox,
.switch .switch-label {
    width: 39px;
    height: 16px;
    padding: 3px;
    border: 1px solid #d2d2d2;
    font-size: 12px;
}

.switch .switch-checkbox {
    opacity: 0;
    filter: alpha(opacity=0);
    display: none;
}

.switch .switch-checkbox + i {
    position: absolute;
    color: #5fb878;
    cursor: no-drop;
    z-index: 1;
}

.switch .switch-label {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    transition: all .3s;
}

.switch .switch-label .circle {
    width: 16px;
    height: 16px;
    background-color: #d2d2d2;
    position: absolute;
    border-radius: 100%;
    left: 3px;
    transition: all .3s;
}

.switch .switch-label .switch-on,
.switch .switch-label .switch-off {
    position: absolute;
}

.switch .switch-label .switch-on {
    left: 10px;
    display: none;
}

.switch .switch-label .switch-off {
    right: 10px;
    color: #d2d2d2;
}

.switch .switch-checkbox:checked + .switch-label,
.switch .switch-checkbox:checked + i + .switch-label {
    background-color: #5fb878;
    border-color: #5fb878;
    transition: all .3s;
}

.switch .switch-checkbox:checked + .switch-label .circle,
.switch .switch-checkbox:checked + i + .switch-label .circle {
    background-color: #fff;
    left: 26px;
    transition: all .3s;
}

.switch .switch-checkbox:checked + .switch-label .switch-on,
.switch .switch-checkbox:checked + i + .switch-label .switch-on {
    display: block;
    color: #fff;
    transition: all .3s;
}

.switch .switch-checkbox:checked + .switch-label .switch-off,
.switch .switch-checkbox:checked + i + .switch-label .switch-off {
    display: none;
    transition: all .3s;
}

.switch .switch-checkbox:disabled + .switch-label
.switch .switch-checkbox:disabled + i,
.switch .switch-checkbox:disabled + i + .switch-label {
    cursor: no-drop;
}

/* 单选框、复选框 */
.radio,
.checkbox {
    position: relative;
    display: flex;
    align-items: center;
}

.radio .radio-input,
.radio .radio-label,
.checkbox .checkbox-input,
.checkbox .checkbox-label {
    width: 18px;
    height: 18px;
    display: inline-block;
    cursor: pointer;
}

.radio .radio-input,
.checkbox .checkbox-input {
    position: absolute;
    opacity: 0;
}

.radio .radio-label,
.checkbox .checkbox-label {
    border: 1px solid #d2d2d2;
    background-color: #fff;
    color: #fff;
    transition: all .3s;
    user-select: none;
    line-height: 18px;
    font-size: 12px;
    text-align: center;
    border-radius: 2px;
}

.radio label:not(.radio-label),
.checkbox label:not(.checkbox-label) {
    cursor: pointer;
    padding: 0 5px;
}

.radio .radio-input:hover + .radio-label,
.checkbox .checkbox-input:hover + .checkbox-label {
    border-color: #5fb878;
    transition: all .2s;
}

.radio .radio-input:checked + .radio-label,
.checkbox .checkbox-input:checked + .checkbox-label {
    background-color: #5fb878;
    border-color: #5fb878;
    transition: all .3s;
}

/* 页头 */
header {
    width: 100%;
    height: 45px;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #222;
    color: #fff;
}

/* 左侧模块、右侧模块 */
header .header-left,
header .header-right {
    display: flex;
    align-items: center;
}

header .header-left .header-left-title {
    width: 220px;
    height: 45px;
    line-height: 45px;
}

header .header-right .header-right-empty {
    box-sizing: border-box;
    padding: 0 20px;
    line-height: 45px;
    height: 45px;
    border-bottom: 5px solid transparent;
    cursor: pointer;
}

header .header-right .header-right-front_desk {
    padding-right: 20px;
    height: 45px;
    line-height: 45px;
    text-align: center;
}

header .header-left .header-left-title .header-left-title-link,
header .header-right .header-right-front_desk .header-right-front_desk-link {
    display: inline-block;
    width: 100%;
    height: 100%;
    vertical-align: top;
    font-size: 18px;
}

header .header-left .header-left-title .header-left-title-link {
    padding-left: 20px;
    box-sizing: border-box;
}

header .header-right .header-right-front_desk .header-right-front_desk-link {
    padding: 0 20px;
    font-size: 12px;
    box-sizing: border-box;
}

header .header-left .header-left-aside-switch {
    margin-left: 10px;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 3px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all .1s;
}

header .header-left .header-left-aside-switch:hover {
    background: rgba(255,255,255,0.3);
}

header .header-left .header-left-list {
    padding: 0 20px;
}

header .header-left .header-left-list .header-left-item,
header .header-right .header-right-list .header-right-item {
    padding: 0 20px;
    height: 45px;
    line-height: 45px;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    position: relative;
}

header .header-left .header-left-list .header-left-item:hover,
header .header-right .header-right-empty:hover,
header .header-right .header-right-list .header-right-item:hover,
header .header-right .header-right-front_desk .header-right-front_desk-link:hover {
    border-bottom: 5px solid #5fb878;
}

header .header-left .header-left-list .header-left-item:hover .fa-caret-down,
header .header-right .header-right-list .header-right-item:hover .fa-caret-down {
    display: none;
}

header .header-left .header-left-list .header-left-item:hover .fa-caret-up,
header .header-right .header-right-list .header-right-item:hover .fa-caret-up {
    display: inline;
}

header .header-left .header-left-list .header-left-item:hover > ul,
header .header-right .header-right-list .header-right-item:hover > ul {
    display: block;
}

header .header-left .header-left-list .header-left-item .fa,
header .header-right .header-right-list .header-right-item .fa {
    margin-left: 5px;
    color: rgba(255,255,255,.7);
}

header .header-left .header-left-list .header-left-item .fa-caret-up,
header .header-right .header-right-list .header-right-item .fa-caret-up {
    color: #fff;
    display: none;
}

header .header-left .header-left-list .header-left-item .header-left-list-list,
header .header-right .header-right-list .header-right-item .header-right-list-list {
    padding: 5px 0;
    position: absolute;
    left: 0;
    width: 150%;
    border: 1px solid #d2d2d2;
    text-align: center;
    font-size: 12px;
    border-radius: 2px;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,.12);
    z-index: 99;
    display: none;
}

header .header-right .header-right-list .header-right-item .header-right-list-list {
    width: 100%;
}

header .header-left .header-left-list .header-left-item .header-left-list-list .header-left-item-item,
header .header-right .header-right-list .header-right-item .header-right-list-list .header-right-item-item {
    height: 36px;
    line-height: 36px;
    transition: all .2s;
}

header .header-left .header-left-list .header-left-item .header-left-list-list .header-left-item-item {
    padding-left: 30px;
    text-align: left;
}


header .header-left .header-left-list .header-left-item .header-left-list-list .header-left-item-item:hover,
header .header-right .header-right-list .header-right-item .header-right-list-list .header-right-item-item:hover {
    background-color: #f2f2f2;
    color: #000;
}

header .header-left .header-left-list .header-left-item .header-left-list-list .header-left-item-item .header-left-link-link,
header .header-right .header-right-list .header-right-item .header-right-list-list .header-right-item-item .header-right-link-link {
    display: block;
}

header .header-left .header-left-list .header-left-item .header-left-list-list .header-left-item-item .header-left-link-link i {
    display: inline-block;
    width: 20px;
}

/* 主题 */
main {
    position: absolute;
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

/* 侧边栏 */
main aside::-webkit-scrollbar {
    width: 6px;
    height: 1px;
}

main aside::-webkit-scrollbar-thumb {
    background-color: #5fb878;
}

main aside::-webkit-scrollbar-track {
    background-color: #ededed;
}

main aside {
    padding: 10px 0;
    position: absolute;
    left: 0;
    width: 220px;
    top: 0;
    bottom: 0;
    background-color: #eee;
    overflow: hidden;
    overflow-y: auto;
    transition: all .3s;
}

main aside.hide {
    transform: translatex(-100%);
}

main aside.hide + article {
    left: 0;
}

main aside .sidebar-list .sidebar-item .sidebar-list-list.active {
    display: block;
}

main aside .sidebar-list .sidebar-item .sidebar-link.active,
main aside .sidebar-list .sidebar-item .sidebar-link:hover,
main aside .sidebar-list .sidebar-item .sidebar-list-list .sidebar-item-item .sidebar-link-link.active,
main aside .sidebar-list .sidebar-item .sidebar-list-list .sidebar-item-item .sidebar-link-link:hover {
    background-color: #009688;
    border-color: #04564e;
    color: #fff;
    cursor: pointer;
    transition: all .3s;
}

main aside .sidebar-list .sidebar-item .sidebar-link,
main aside .sidebar-list .sidebar-item .sidebar-list-list .sidebar-item-item .sidebar-link-link {
    padding: 9px 15px;
    border-left: 3px solid transparent;
    display: block;
    font-size: 12px;
    box-sizing: border-box;
}

main aside .sidebar-list .sidebar-item .sidebar-list-list .sidebar-item-item .sidebar-link-link {
    padding-left: 45px;
    padding-right: 60px;
    text-indent: 1em;
}

main aside .sidebar-list .sidebar-item .sidebar-link i:first-child {
    display: inline-block;
    width: 30px;
}

main aside .sidebar-list .sidebar-item .sidebar-link i:last-child,
main aside .sidebar-list .sidebar-list-list .sidebar-item-item .sidebar-link-link i {
    line-height: 16px;
}

main aside .sidebar-list .sidebar-item .sidebar-list-list {
    display: none;
}

/* 独立内容 */
main article {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 220px;
    background-color: #f1f1f1;
    transition: all .3s;
}

main article .container::selection {
    background: #009688;
    color: #fff;
}

main article .container::-webkit-scrollbar {
    width: 6px;
    height: 1px;
}

main article .container::-webkit-scrollbar-thumb {
    background-color: #5fb878;
}

main article .container::-webkit-scrollbar-track {
    background-color: #ededed;
}

main article .container {
    padding: 15px;
    position: absolute;
    top: 40px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
}

/* 消息提醒 */
@keyframes messageprompt {
    0% {
        transform: translate(-50%, -100%);
        opacity: 0;
        filter: alpha(opacity=0);
    }

    20% {
        transform: translate(-50%, 20px);
        opacity: 1;
        filter: alpha(opacity=100);
    }

    80% {
        transform: translate(-50%, 20px);
        opacity: 1;
        filter: alpha(opacity=100);
    }

    100% {
        transform: translate(-50%, -100%);
        opacity: 0;
        filter: alpha(opacity=0);
    }
}

#message-wrap {
    width: 0;
    height: 0;
}

#message-wrap > * {
    min-width: 380px;
    position: fixed;
    padding: 15px 15px 15px 20px;
    font-size: 15px;
    color: #fff;
    left: 50%;
    top: 0;
    z-index: 3;
    border: 1px solid transparent;
    border-radius: 2px;
    background-color: transparent;
    opacity: 0;
    filter: alpha(opacity=0);
    transform: translate(-50%, 20px);
}

#message-wrap > *.info {
    background-color: #edf2fc;
    border-color: #ebeef5;
    color: #909399;
    animation: messageprompt 3s 1 ease forwards;
}

#message-wrap > *.success {
    background-color: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
    animation: messageprompt 3s 1 ease forwards;
}

#message-wrap > *.warning {
    background-color: #fdf6ec;
    border-color: #faecd8;
    color: #e6a23c;
    animation: messageprompt 3s 1 ease forwards;
}

#message-wrap > *.error {
    background-color: #fef0f0;
    border-color: #fde2e2;
    color: #f56c6c;
    animation: messageprompt 3s 1 ease forwards;
}

#message-wrap > * > * {
    display: inline-block;
}

#message-wrap > * .message-text {
    margin-left: 10px;
}

#message-wrap > * i:last-child {
    color: #c0c4cc;
    float: right;
    cursor: pointer;
}

#message-wrap > * i:last-child:hover {
    color: #5fb878;
}

/* 模态框 */
.modal_frame,
.modal_frame .background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: 2;
}

.modal_frame {
    display: none;
}

.modal_frame .modal_frame-container {
    background-color: #fff;
    position: relative;
    width: 94%;
    height: 94%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 2px;
    z-index: 3;
}

.modal_frame .modal_frame-container.full_screen {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap {
    padding: 0 20px;
    height: 35px;
    line-height: 35px;
    border-bottom: 1px solid #eee;
    color: #333;
    background-color: #f8f8f8;
    border-radius: 2px 2px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap .modal_frame-title {
    font-size: 12px;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap .modal_frame-btn-wrap {
    font-size: 0;
    display: inherit;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap i {
    line-height: 14px;
    height: 14px;
    width: 12px;
    font-size: 14px;
    text-align: center;
    color: #333;
    cursor: pointer;
    transition: all .3s;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap i:hover {
    color: #73b8e8;
    transition: all .3s;
}

.modal_frame .modal_frame-container .modal_frame-title-wrap i + i {
    margin-left: 15px;
}

.modal_frame .modal_frame-container .modal_frame-body::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.modal_frame .modal_frame-container .modal_frame-body::-webkit-scrollbar-thumb {
    background-color: #5fb878;
}

.modal_frame .modal_frame-container .modal_frame-body::-webkit-scrollbar-track {
    background-color: #ededed;
}

.modal_frame .modal_frame-container .modal_frame-body {
    padding: 15px;
    height: calc(100% - 66px);
    border-radius: 0 0 2px 2px;
    background-color: #f1f1f1;
    overflow: auto;
}

.modal_frame > .fa-times {
    position: absolute;
    top: 1%;
    right: 1%;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 3;
}

.modal_frame .background {
    background-color: rgba(0, 0, 0, 0.4);
}

/* 管理员模态框 */
#admin_info .modal_frame-container {
    width: 30%;
    height: auto;
}

#admin_info .modal_frame-container .modal_frame-body {
    padding: 40px 10px;
}

#admin_info .modal_frame-container .modal_frame-body .admin_info-item {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

#admin_info .modal_frame-container .modal_frame-body .admin_info-item.head .admin_info-item-img {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    border: 1px solid #e3e3e3;
}

/* 图片模态框 */
#image-modal_frame .modal_frame-body {
    height: 100%;
}
#image-modal_frame .modal_frame-body .modal_frame-body-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    cursor: move;
    z-index: 3;
}